home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / MSDOS / (m)aab / HELP.DAT < prev    next >
Text File  |  1985-09-17  |  21KB  |  405 lines

  1. #C README1ST    
  2. #F This is not a command, but an introduction to using the HELP file. Here 
  3.  is explained generally what you may use DOS commands to do.
  4.    If you are not familiar with Command format and notation please read
  5.  the COMNINFO, NOTATION, PARAMETER, AND RESERVED entries
  6.     
  7.  You can use DOS commands to:
  8.   - Compare, copy, display, erase, rename files, and format fixed disks
  9.   and diskettes.
  10.   - Execute system programs, such as EDLIN and DEBUG, plus your own programs.
  11.   - Set various printer and screen options.
  12.   - Request DOS to pause.
  13.   - Transfer DOS to another diskette.
  14.   - Set options in the Asynchronous Communications Adapter.
  15.   - Cause printer output to be directed to the Asynchronous Communication
  16.   Adapter.
  17.   - Recover files from a damaged disk or diskette.
  18.   - Print the contents of a graphics display screen on a printer.
  19.   - Print files on a printer while the system is doing other work.
  20.   - Backup and restore files on a fixed disk.
  21. #C ASSIGN (Drive) Pg 6-21
  22. #F Route all requests for a drive to a different drive
  23. #X ASSIGN [x=y [...]]
  24.   entering ASSIGN with no parameters causes reset to normal 
  25. #C BACKUP (Fixed Disk) Pg 6-24
  26. #F Backs up one or more files from a fixed disk to diskettes
  27. #X BACKUP [d:][path][filename][ext] d:[/S][/M][/A][/D:mm-dd-yy]
  28.   where /S causes files in all sub-directories to be backed up also
  29.   where /M backs up only files that have been modified since last backup
  30.   where /A adds backed up files to those already on backup diskette
  31.   where /D backs up only files written on or after specified date
  32. #C BASIC      Pg 2-6 of BASIC Manual
  33. #F Load the basic interpreter (normal or advanced) into memory
  34. #X BASIC[A] [d:][program[.bas]]
  35. #C BATCH (Commands) Pg 6-28
  36. #F Executes commands contained in the specified file
  37.  All batch files must have a filename extension of .BAT. The seven subcommands
  38.  which control batch mode processing are listed below.
  39. #X [d:]filename [parameters]
  40.   ECHO, FOR, GOTO, IF, SHIFT, PAUSE, AND REM are batch subcommands
  41.   If you press Ctrl-Break while in batch mode, the prompt:
  42.   Terminate batch job (Y/N)? appears
  43. #C BREAK (Control-Break) Pg 6-50
  44. #F Instructs DOS to check for control break whenever a program requests
  45.    DOS to perform any functions (such as disk operations)
  46. #X BREAK [ON|OFF]
  47.   where ON causes DOS to begin checking for Ctrl-Break whenever a program
  48.   requests any DOS function
  49.   where OFF causes DOS to check only during screen, keyboard, printer, or
  50.   asynchronous Communications operations 
  51.   BREAK with no parameters displays the current state (ON or OFF)
  52. #C BROWSE     This is a utility program, not a DOS command
  53. #F Displays the specified file of the current directory on the screen in page
  54.  sized groups, controls display with Home, PgUp, End, PgDn keys; lines up or
  55.  down can be controlled by keying u n or d n where n is a number from 1-20.
  56.  Press Esc to terminate BROWSE.
  57. #X BROWSE filename[.ext]
  58. #C CHDIR (Change Directory) Pg 6-52
  59. #F Changes or displays the DOS current directory of the specified or default
  60.   drive
  61. #X CHDIR [[d:]path] or CD [[d:]path]
  62.   CHDIR with no parameters or d: only displays the current directory path
  63. #C CHKDSK (Check Disk) Pg 6-54
  64. #F Analyzes the Directories and the File Allocaton Table on the designated
  65.     or default drive and produces a disk and memory status report
  66. #X CHKDSK [d:][filename][/F][/V]
  67.   if filename is specified, CHKDSK will display the number of non-contiguous
  68.      areas occupied by the file or files. Note that CHKDSK looks only in 
  69.      the current dirctory for these files.
  70.   where /F specifies that you wish to correct (fix) errors found in the
  71.      directories or File Allocation Table
  72. #C CLS (Clear Screen) Pg 6-58
  73. #F Clears the display screen
  74. #X CLS
  75. #C COMNINFO1 Pg 6-17
  76. #F This is not a command, but an explanation of information COMMON to all DOS
  77.    commands.
  78. - The normal prompt from the command processor is the default drive plus >,
  79.  such as A> unless changed by the PROMPT command.
  80. - When a command completes, the system prompt will reappear on the screen. If
  81.  no error messages are displayed before the system prompt reappears, the 
  82.  command has been successfully completed.
  83. - Commands are usually followed by one or more parameters.
  84. - Commands and parameters may be entered in uppercase or lowercase, or any 
  85.  combination of both.
  86. - DOS will search the current directory of the specified or default drive to 
  87.  find a command or batch file whose name you have entered. If not found, DOS
  88.  will continue its search in each of the directories listed in the most recent
  89.  PATH command.
  90. - Most commands allowing you to enter filenames will also accept a path (dir-
  91.  ectory) name ahead of the filename. If you do not plan to create directories
  92.  of your own, you may disregard all references to path names.
  93. - Commands and parameters must be separated by delimiters (space, comma, semi-
  94.  colon, equal sign, or the tab key). 
  95. #C COMNINFO2 Pg 6-17
  96. #F This is not a command, but an explanation of information COMMON to all DOS
  97.  commands.
  98. - The three parts of filespec (d:filename.ext) must NOT be separated by
  99.  delimiters. The colon(:) and period(.) already serve as delimiters.
  100. - Files are not required to have filename extensions when created or renamed,
  101.  but the filename extension is required when referring to a file that has one.
  102. - You can end commands while they are running by pressing Ctrl-Break.
  103.  Ctrl-Break is recognized only while the system is reading from the keyboard
  104.  or printing characters on the screen, unless you have used BREAK=ON. In 
  105.  either instance, the command may not end instantly when you press Ctrl-Break.
  106. - Commands become effective only after pressing the Enter key.
  107. - Global filename characters and device names are not allowed in a command
  108.  name. You may use them only in command parameters.
  109. - For commands displaying large amounts of output on the screen, you can press
  110.  Ctrl-NumLock to suspend the display of the output. Pressing any character key
  111.  resumes the display.
  112. - Drives will be referred to as SOURCE drives and TARGET drives. A SOURCE drive
  113.  is one you will be transferring information FROM. A TARGET drive is a drive
  114.  you will be transferring information TO. 
  115. - If the characters <,>, or | appear anywhere in the command line entered, DOS
  116.  will act upon them as described in "Redirection of Standard Input and Output"
  117.  and "Piping of Standard Input and Output Device in Chapter 10.
  118. #C COMP (Compare Files) Pg 6-60
  119. #F Compares files
  120. #X COMP [d:][path][filename[.ext]] [d:][path][filename[.ext]]
  121.  Global filename characters are allowed in both filenames, and will cause
  122.  all of the files matching the first filename to be compared with the corres-
  123.  ponding files from the second filename.
  124. #E Comp A:*.asm B:*.BAK causes each file that has an extension of .asm from
  125.  drive A to be compared with a file of the same name(but with an extension
  126.  of .bak) from drive B.
  127. #C COPY        Pg 6-65 
  128. #F Copies files
  129.  The first file specified is the source file, the second file specified is the
  130.  target file.
  131. #X COPY [/A][/B][d:][path][filename[.ext][/A][/B][d:][path]
  132.    [filename[.ext]][/A][/B][/V] 
  133.  where /V causes DOS to verify that sectors written on the target file are 
  134.   properly recorded
  135.  where /A and /B indicate the amount of data to be processed by the copy
  136.   command. Each applies to the filespec preceding it and to all remaining
  137.   filespecs on the command lin until another /A or /B is encountered.
  138.  
  139.  These parameters have the following meaning:
  140.  
  141.   when used with a SOURCE filespec: 
  142.  
  143.  /A causes the file to be treated as an ASCII (text) file. The file's data is
  144.  copied up to, but not including, the first end-of-file character (Ctrl-Z, 
  145.  hex A1) found in the file; the remainder of the file is not copied.
  146.  /B causes the entire file (based on the directory file size) to be copied.
  147.  
  148.   when used with a TARGET filespec: 
  149.  /A causes a Ctrl-Z character to be added as the last character of the file.
  150.  /B causes no end-of-file character to be added.
  151. #E COPY a:help.dat b:
  152. #C DATE       Pg 6-80
  153. #F Enter the current date
  154. #X DATE [mm-dd-yy]
  155. #C DIR (Directory) Pg 6-83
  156. #F List all or specified filenames in a directory
  157. #X DIR [d:][path][filename[.ext]][/P][/W]
  158.   where /P will pause the screen when it is full
  159.   where /W will provide a wide display
  160.   entries that name other directories are identified by <DIR> in the file 
  161.     size field
  162. #C DISKCOMP (Compare Diskettes) Pg 6-90
  163. #F Compares the contents of the diskette in the first specified drive to the
  164.  contents of the diskette in the second specified drive. This command is used
  165.  only for comparing diskettes, if a fixed disk drive letter is specified, an
  166.  error message is displayed. 
  167. #X DISKCOMP [d:][d:][/1][/8]
  168.  where /1 forces DISKCOMP to compare only the first side of the diskettes,
  169.   even if the diskettes are dual-sided.
  170.  where /8 causes DISKCOMP to compare only 8 sectors per track, even if the 
  171.  first diskette contains 9 sectors per track.
  172. #C DISKCOPY (Copy Diskettes) Pg 6-90
  173. #F Copys the contents of the diskette in the first specified drive to the
  174.  contents of the diskette in the second specified drive. This command is used
  175.  only for copying diskettes, if a fixed disk drive letter is specified, an
  176.  error message is displayed. The target diskette is formatted if necessary.
  177. #X DISKCOPY [d:][d:][/1]
  178.  where /1 forces DISKCOPY to copy only the first side of the diskette,
  179.   even if the diskette is dual-sided.
  180. #C ECHO (Batch Subcommand) Pg 6-35
  181. #F Allows or inhibits screen display of DOS commands executed
  182.   from a batch file
  183. #X ECHO [ON|OFF|message]
  184.   where ECHO with no parameters displays current state (on or off)
  185. #C ERASE      Pg 6-98
  186. #F Delete files from directories
  187. #X ERASE [d:][path][filename].ext]] or DEL [d:][path][filename].ext]]
  188. #C FOR (Batch Subcommand) Pg 6-37
  189. #F Allows iterative execution of DOS commands
  190. #X FOR %%variable IN (set) DO command
  191.   where %%variable is sequentially set to each member of set and then
  192.   the command is evaluated and executed
  193. #C FORMAT     Pg 6-100
  194. #F Formats a diskette
  195. #X FORMAT [d:][/S][/1][/8][/V][/B]
  196.   where /S will place OPERATING SYSTEM files on the target diskette
  197.   where /1 formats the diskette as one-sided
  198.   where /8 formats the target diskette at 8 sectors per track
  199.   where /V causes FORMAT to prompt you for a Volume label 
  200.   where /B causes FORMAT to create 8 sector diskette with space for 
  201.     IBMBIO.COM AND IBMDOS.COM
  202. #C GOTO (Batch Subcommand) Pg 6-38
  203. #F Transfers control to the line FOLLOWING the one containing the label
  204. #X GOTO label
  205.   where label is a character string up to 8 characters long preceded by a :
  206. #E :LOOP
  207.    REM looping...  <This produces an indefinite sequence of rem looping>  
  208.    GOTO LOOP
  209. #C GRAPHICS (Screen Print) Pg 6-106
  210. #F Prints the contents of a graphics display screen on an IBM (EPSON) printer
  211. #X GRAPHICS
  212.   Press the Shift-PrtSc keys to print the screen contents on the printer
  213.   (The GRAPHICS command must have been issued previously)
  214. #C HELP       (A utility program, NOT a DOS command)
  215. This version of Help.dat by R.E. McCallister
  216. #F Provides help with DOS commands
  217. #X HELP [command]
  218. #E HELP HELP
  219. #C IF (Batch Subcommand) Pg 6-40
  220. #F Provides conditional execution of commands within a batch file
  221. #X IF [NOT] condition command
  222.   where condition is one of:
  223.     ERRORLEVEL number
  224.     string1==string2
  225.     EXIST filespec
  226.   the command is executed if the condition is true
  227. #C MKDIR (Make Directory) Pg 6-107
  228. #F Creates a sub-directory on the specified or default disk
  229. #X MKDIR [d:]path or MD [d:]path
  230. #C MODE       Pg 6-109
  231. #F Set the mode of the printer or the display
  232. #X   MODE [LPT#:][n][,m][,P]
  233.   where # is 1, 2, or 3 (the printer number)
  234.         n is 80 or 132  (characters per line)
  235.         m is 6 or 8     (lines per inch vertical spacing)
  236.         P specifies continuous retry on time-out errors
  237.   or MODE n
  238.   or MODE [n],m[,T]
  239.   where n is 40, 80, BW40, BW80, CO40, OR MONO
  240.         m is R or L     (shift display right or left)
  241.         T request a test pattern to align the display
  242.   or MODE COMn:baud[,parity[,databits[,stopbits[,P]]]]
  243.   where n is 1 or 2 (Asynchronous Communication Adapter number)
  244.         baud is 110, 150, 300, 600, 1200, 2400, 4800, or 9600
  245.         parity is N(none), O(odd), or E(even)  (default=E)
  246.         databits is 7 or 8 (default = 7)
  247.         stopbits is 1 or 2 (default =1 except for baud =110, =2)
  248.   or MODE LPT#:=COMn
  249.   where # is 1, 2, or 3 (printer number)
  250.         n is 1 or 2     (Comm Adapter number)
  251. #C NOTATION   Pg 6-8
  252. #F This is not a command, but an explanation of DOS command notation
  253.    The following notation is used to indicate how DOS commands should 
  254.    be entered:
  255.   - You must enter any words shown in CAPITAL LETTERS. These must be entered
  256.    exactly as shown, except lower case is acceptable.
  257.   - You must supply any items shown in lower case letters NOT within square
  258.    brackets.
  259.   - Items in square brackets [..] are optional. If you include optional 
  260.    information, do not type the brackets, only the information inside the 
  261.    brackets.
  262.   - Items separated by a bar | mean that you may enter one of the separated
  263.    items, but not both. For example ON|OFF means you can enter ON or OFF,
  264.    but not both.
  265.   - An ellipsis ... indicates you can repeat an item as many times as
  266.    you wish.
  267.   - You must include all punctuation (except square brackets and vertical
  268.    bars) such as commas, equal sighns, questin marks, colons, slashes, or
  269.    backslashes where shown.
  270. #C PARAMETER  Pg 6-9
  271. #F This is not a command, but an explanation of DOS command parameters
  272.   Parameters are items that you can include in your DOS command statements.
  273.   They are used to specify additional information to the system. Some are
  274.   required in your commands, others are optional. If you do not include some
  275.   required parameters, the system supplies a default value. Defaults are 
  276.   noted in the discussion of each command.
  277.   
  278.   d: This denotes you should specify a drive. Examples, A:, b:
  279.     If you omit this parameter, DOS assumes the default drive.
  280.   
  281.   path This denotes a path of directory names. Enter the directory names
  282.     separated by backslashes. If a filename is to be appended, it should be
  283.     separated from the last directory entry by a backshash. A first backslash
  284.     is optional, If used, it tells DOS to begin with the ROOT directory; if
  285.     omitted, the directory path begins with the CURRENT directory. Paths may
  286.     be up to 63 characters long.
  287.     Example, \dir1\dir2\myfile
  288.   
  289.   filename This denotes a 1-8 character filename. Filenames may be followed
  290.     by a filename extension.
  291.  
  292.   .ext  This denotes an optional fiename extension consisting of a period and
  293.    1-3 characters. When used filename extensions immediately follow filenames.
  294.  
  295.   filespec  This denotes the file specification of optional drive, filename, 
  296.    and optional filename extension. Examples, B:myfile.COB, a:yourfile, mine
  297. #C PATH (Set Search Directory) Pg 6-117
  298. #F Causes specified directories to be searched for commands or batch files
  299.    that were not found by a search of the current directory
  300. #X PATH [d:]path[[;d:]path]...]
  301.   erroneous information in the paths, such as invalid drives, etc will not be
  302.   detected until DOS actually needs to search the specified paths
  303. #C PAUSE (Batch Subcommand) Pg 6-47 
  304. #F Suspends system processing and displays the message:
  305.   Strike a key when ready...
  306. #X PAUSE [remark]
  307.   where remark is any character string up to 121 characters long
  308. #C PRINT      Pg 6-120 
  309. #F Prints a file or list of files on the printer while you are doing other
  310.    tasks on the computer. Up to 10 filenames can be queued for printing at
  311.    one time. Only files in the current directory can be queued
  312. #X PRINT [[d:][filename[.ext]][/T][/C][/P]...]
  313.   where /T sets terminate mode. All queued files are canceled from the que
  314.            and any file printing is canceled
  315.         /C sets the cancel mode. Allows selection of which files to cancel
  316.         /P sets the print mode. (default if not /parameters issued)
  317. #C RECOVER    Pg 6-126
  318. #F Recovers files from a disk that has developed a defective sector. You can
  319.  recover the file that contains the bad secator (minus the data in the bad 
  320.  sector), or all the files on the disk can be recovered if the direcatory has been damaged.
  321. #X RECOVER [d:][path]filename[.ext] or RECOVER d:
  322.  In the second format shown, RECOVER assumes the directory is damaged, and 
  323.  recovers all files on the specified disk.   
  324. #C REM (Remark Batch Subcommand) Pg 6-49
  325. #F Displays remarks from within a batch file
  326. #X REM [remark]
  327.   where remark is any character string up to 123 characters long
  328. #C RENAME     Pg 6-129
  329. #F Renames a file 
  330. #X REN[AME] filespec
  331. #C RESERVED   6-13
  332. #F This is not a command, but any explanation of RESERVED DEVICE NAMES
  333.   
  334.   CON:  Console keyboard/screen. If used as an input device, pressing Ctrl-Z,
  335.     followed by Enter generates an end-of-file condition which end CON: as an
  336.     input device.
  337.   AUX: or COM1:  First Asynchronous Communications Adapter port
  338.   COM2:         Second Asynchronous Communications Adapter port 
  339.   LPT1: or PRN:  First parallel printer (output only)
  340.   LPT2: or LPT3: Second or third parallel printer
  341.   NUL:  Nonexistent (dummy) device for testing applications. If used as input,
  342.     immediate end-of-file is generated; if as an output device, write
  343.     operations are simulated, but no data is actually written.
  344.  
  345.   When using device names, you should assure that the device atually exists,
  346.   using nonexistent device names can cause unpredictable results.
  347.  
  348.   The reserved device names may be used in place of a filename.
  349.  
  350.   Any drive specifier or filename extension entered with these device names
  351.   will be ignored. The colon following the reserved device name is optional.
  352. #C RESTORE (Fixed Disk) Pg 6-131
  353. #F Restores one or more files from diskettes to a fixed disk.
  354. #X RESTORE d:[d:][path][filename][.ext][/S][/P]
  355.  The files being restore must have been placed on the diskettes by the BACKUP
  356. command. The first parameter you specify is the backup diskette drive. The
  357. second parameter is the fixed disk you want to restore.
  358.  where /S causes backed up files in all sub-directories to be restored
  359.  where /P will cause RESTORE to prompt you before restoring files that have
  360. been changed since they were last backed up, or that are marked read-only.
  361. You may then choose to restore the file or not.
  362. #C RMDIR (Remove Directory) Pg 6-134
  363. #F Removes a sub-directory from the specified disk
  364. #X RMDIR [d:]path or RD [d:]path
  365.  The directory must be empty before it can be removed with the exception of 
  366. the "." and ".." entries.
  367.  The root directory and the current directory cannot be removed.
  368. #C SHIFT (Batch Subcommand) Pg 6-45
  369. #F Allows command lines to make use of more than 10 (%0 thru %9) replaceable
  370. parameters.
  371. #X SHIFT
  372. Replaceable parameters are ;numbered %0 through %9. If you wish to use more
  373. than 10 parameters on a command line, you can use SHIFT to get at parameters
  374. past the tenth.  All parameters are shifted one position to the left, with the
  375. %0 parameter being replaced by the %1 parameter, etc.
  376. #C SYS (System) Pg 6-135
  377. #F Transfers the operating system files from the default drive to the 
  378.  specified drive.
  379. #X SYS d:
  380.  The directory of the disk in the specified drive must be completely empty, or
  381. the disk must have been formatted by a FORMAT d:/S or FORMAT d:/B command to 
  382. contain directory entries for the DOS files IBMBIO.COM and IBMDOS.COM
  383. #C TIME       Pg 6-136
  384. #F Set the time
  385. #X TIME [hh:mm:ss.xx]
  386. #C TREE (Display Directories) Pg 6-138
  387. #F Displays all of the directory paths found on the specified or default drive
  388.   and optionally lists the files in each sub-directory
  389. #X TREE [d:][/F]
  390.   where /F specifies list the files
  391. #C TYPE       Pg 6-141
  392. #F Display the contents of the specified file on the screen
  393. #X TYPE [d:][path]filename[.ext] 
  394. #E TYPE a:help.dat
  395. #C VER (Version) Pg 6-143
  396. #F Displays the DOS version number on the screen
  397. #X VER
  398. #C VERIFY     Pg 6-144
  399. #F Verifies that the data written on a disk has been correctly recorded
  400. #X VERIFY [ON|OFF]
  401.   VERIFY with no parameter displays the current state (ON or OFF)
  402. #C VOL (Volume) Pg 6-145
  403. #F Displays the disk volume identification of the specified or default drive
  404. #X VOL [d:]
  405.